package com.yf.exam.common.enums;

import lombok.Getter;

/**
 * pdf类型枚举
 */
@Getter
public enum PdfTypeEnum {

    ORG_SAFETY_TRAINING_SCHEDULE(1,"安全培训计划表"),//todo
    ORG_TRAINING_CLASS_SCHEDULE(2,"培训班课程安排表"),
    ORG_STUDENT_INFO_COLLECT(3,"学员基本信息汇总表"),
    ORG_HEAD_TEACHER_WORK_LOG(4,"班主任工作表"),
    ORG_TEACHING_PLAN_EXECUTION(5,"教学计划执行表"),
    ORG_TEACHER_ATTENDANCE(6,"授课老师签到表"),
    ORG_TRAINING_MANAGEMENT_SATISFACTION_EVALUATION(7,"培训管理满意度测评表"),//todo
    ORG_STUDENT_ASSESSMENT(8,"学员考核情况表"),
    ORG_TRAINING_ASSESSMENT_REPORT(9,"综合考评报告表"),
    ;

    public int code;

    public String desc;

    PdfTypeEnum(int code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public static PdfTypeEnum getByCode(int codeVal){
        for(PdfTypeEnum resultCodeEnum : PdfTypeEnum.values()){
            if(resultCodeEnum.code == codeVal){
                return resultCodeEnum;
            }
        }
        return null;
    }

}
